package com.cmall.common.foundation.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 基础实体类，声明所有实体类的公共的属性
 */
public class BaseEntity implements Serializable {

	public static final String STATE_MODIFY = "modified";// 更新
	public static final String STATE_ADD = "added";// 增加
	public static final String STATE_REMOVE = "removed";// 删除
	protected String _state;

	/**
	 * 序列化ID
	 */
	private static final long serialVersionUID = 394038300653995265L;

	/** 自增主键 */
	Long id;
	/** 版本号 */
	private Integer version = 0;
	/** 创建时间 */
	private Date createTime ;
	/** 修改时间 */
	private Date modifyTime = new Date();
	/** 创建时间 */
	private String createDate;
	/** 修改时间 */
	private String modifyDate;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}
	
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(String modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String get_state() {
		return _state;
	}

	public void set_state(String _state) {
		this._state = _state;
	}
}